package cn.com.nes.mybatis.agent.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 合同审批授权
 * </p>
 *
 * @author nes
 * @since 2022-08-17
 */
@TableName("contract_audit_authorization")
public class ContractAuditAuthorization extends Model<ContractAuditAuthorization> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 公司id
     */
    @TableField("company_id")
    private String companyId;
    /**
     * 授权范围，1-个人，2-部门
     */
    private Integer type;
    /**
     * 名称
     */
    private String name;
    /**
     * 创建人id
     */
    @TableField("creator_id")
    private Long creatorId;
    /**
     * 创建日期
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     * 修改日期
     */
    @TableField("gmt_modified")
    private Date gmtModified;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public static final String ID = "id";

    public static final String COMPANY_ID = "company_id";

    public static final String TYPE = "type";

    public static final String NAME = "name";

    public static final String CREATOR_ID = "creator_id";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ContractAuditAuthorization{" +
                ", id=" + id +
                ", companyId=" + companyId +
                ", type=" + type +
                ", name=" + name +
                ", creatorId=" + creatorId +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                "}";
    }
}